package com.cgt.xiaotao.promotion;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 优惠服务
 */
@SpringBootApplication
@EnableScheduling //开启定时任务调度
@MapperScan("com.cgt.xiaotao.promotion.mapper")
@ComponentScan(basePackages = {"com.cgt"})
@Slf4j
@EnableAsync
@EnableAspectJAutoProxy(exposeProxy = true)//暴露代理对象
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.cgt")
public class ServicePromotionApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServicePromotionApplication.class, args);
    }
}
